package com.lmq.builder.demo01;

//具体的工人
public class Work extends Builders {
    private Product product;

    public Work() {
        this.product = new Product();

    }

    @Override
    void BuildA() {
        product.setBuildA("地基");
        System.out.println("地基");

    }

    @Override
    void BuildB() {
        product.setBuildB("钢筋工程");
        System.out.println("钢筋工程");

    }

    @Override
    void BuildC() {
        product.setBuildC("铺电线");
        System.out.println("铺电线");

    }

    @Override
    void BuildD() {
        product.setBuildD("粉刷");
        System.out.println("粉刷");

    }

    @Override
    Product getProduct() {
        return product;
    }
}
